<?php 
include("conn.php");
mysql_query('SET NAMES UTF8'); 

	  

class MyPrizeBean
{
	public $time_quyu;
	public $time_goodsid;
	public $time_on;
	public $time_end;

	function __construct($time_quyu,$time_goodsid,$time_on,$time_end)
	{
		$this->time_quyu      = $time_quyu;
		$this->time_goodsid      = $time_goodsid;
		$this->time_on      = $time_on;
		$this->time_end      = $time_end;

	}
}


$rert30=mysql_query("select *from city where  id ='".$_REQUEST[cityid]."'");
$rowf=mysql_fetch_array($rert30);
$prize = array();

$cityid = mysql_query("select * from tejia_time where time_quyu='".$_REQUEST[cityid]."'");
while($city=mysql_fetch_array($cityid)){
	$prize[] = new MyPrizeBean($city[time_quyu],$city[time_goodsid],$city[time_on],$city[time_end]);
}


echo json_encode($prize);

?>